package com.ulife.me.components.bouns;

import java.util.Collection;
import java.util.List;

import org.springframework.stereotype.Component;

import com.alibaba.dubbo.config.annotation.Service;
import com.google.common.collect.Lists;
import com.ulife.me.base.entities.bouns.Bouns;
import com.ulife.me.common.base.exception.ServiceException;
import com.ulife.me.common.services.bouns.BounsService;

@Component
@Service(version = "0.0.1-SNAPHOST")
public class BounsComponents implements BounsService{

	@Override
	public List<Bouns> list() throws ServiceException {
		List<Bouns> bouns = Lists.newArrayList();
		bouns.add(new Bouns("红包",10D));
		return bouns;
	}

	@Override
	public Bouns get(String id) throws ServiceException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Bouns save(Bouns entity) throws ServiceException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void delete(Bouns entity) throws ServiceException {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void delete(String id) throws ServiceException {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void save(Collection<Bouns> entities) throws ServiceException {
		// TODO Auto-generated method stub
		
	}

}
